package com.xu.demo.proxyPattern;

/**
 * 代理类代理接口的实现类调用接口方法
 */
public class StaticProxy {

    public static void main(String[] args) {
        RealShopping realShopping = new RealShopping();
        ShoppingProxy shoppingProxy = new ShoppingProxy(realShopping);
        shoppingProxy.buy();
    }
}
